using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class StateMachine
{
    public State CurrentState { get; private set; }
    

    public void Initialize(State _state)
    {

        CurrentState = _state;
        CurrentState.Enter();
    }

    public void ChangeState(State _state)
    {
        CurrentState.Exit();
        CurrentState = _state;
        CurrentState.Enter();
    }
}
